package utils;

/**
 * @Author : orangeCy.奕
 * @Product : 猎豹养成产品源码
 * @Time : 2023/9/2
 * @Desc : VerifyThreadLocalUtils
 */
public class VerifyThreadLocalUtils {

    private VerifyThreadLocalUtils() {
    }

    private static final ThreadLocal<Boolean> threadLocal = ThreadLocal.withInitial(() -> Boolean.FALSE);

    public static Boolean get() {
        return threadLocal.get();
    }

    public static void set(boolean flag) {
        threadLocal.set(flag);
    }

    public static void remove() {
        threadLocal.remove();
    }

}
